package interface_;

public class Animal {
    public String name;

    //构造方法，便于初始化Animal中的name
    public Animal(String name){
        this.name=name;
    }

    public void bark(){
        System.out.println("叫");
    }
}
